
local RoF_Coords = _G.CreateFrame("Frame", "RoF_Coords")
RoF_Coords.obj = _G.LibStub("LibDataBroker-1.1"):NewDataObject("RoF_Coords", {type = "data source", text = "100%"})

local GetPlayerMapPosition = _G.GetPlayerMapPosition
local txt = "%.2f, %.2f"
local player = "player"
local fmt = string.format

function RoF_Coords:Update()
	local x, y = GetPlayerMapPosition(player)

	self.obj.text = fmt(txt, x * 100, y * 100)
end
